import BASE_URL from "./path";
import { mapMutations, mapActions, mapGetters } from "vuex";
import { currentPage } from './tools'
import Cache from "./cache"
export default {
	data() {
		return {
			staticBg:BASE_URL.staticBg,
			user:Cache.get("USER")
		};
	},
	onLoad() {
       
	},
	methods: {
		isEmptyObject(obj) {
		  return Object.keys(obj).length === 0;
		},
		toast(str){
			uni.showToast({
				title:str,
				icon:'none'
			})
		}
	},
	computed: {
	
	},
    
    // 全局配置分享
    onShareAppMessage(e) {
       if(e.from === "button") {
			
		} else {
			return {
				title:'新华倍阅高校平台',
				path:"/pages/index/index" 
			}
		} 
    },
    
    onShareTimeline() {
    	return {
			title:'新华倍阅高校平台',
			path:"/pages/index/index" 
		}
    }
};

